﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Common;
using System.Data;

namespace YiLong.Framework.DataAccess
{
    public class DbHelper
    {
        private string _connectionString;

        public DbHelper(string providerName, string connectionString)
        {
            if (String.IsNullOrEmpty(providerName))
            {
                throw new ArgumentException("providerName cannot be null or empty.");
            }

            if (String.IsNullOrEmpty(connectionString))
            {
                throw new ArgumentException("connectionString cannot be null or empty.");
            }
            _connectionString = connectionString;
        }

        public DbConnection GetOpenedConnection()
        {
            return null;
        }
    }
}
